package com.tianpengtech.common.model.authenticate;

import com.tianpengtech.common.model.AbstractBaseModel;

/**
 * 实体类名-用户认证表 fair_user_authenticate
 *
 * @since Fri May 26 13:29:02 HKT 2017
 */
public class Authenticate extends AbstractBaseModel<Authenticate> {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	public static final Authenticate dao = new Authenticate();

	public static final String ID = "id"; //
	public static final String COMPANY_NAME = "company_name"; // 公司名称
	public static final String COMPANY_ADDRESS = "company_address"; // 公司地址
	public static final String COMPANY_ABBR = "company_abbr"; // 公司简称
	public static final String COMPANY_INFO = "company_info"; // 公司简介
	public static final String COMPANY_CHARGE = "company_charge"; // 法人
	public static final String COMPANY_CHARGE_PHONE = "company_charge_phone"; // 法人手机号
	public static final String COMPANY_LICENSE = "company_license"; // 营业执照
	public static final String LEGAL_IDCARD_FRONT = "legal_idcard_front"; // 法人身份证正面
	public static final String LEGAL_IDCARD_TAILS = "legal_idcard_tails"; // 法人身份证反面
	public static final String CHARGE_CARD = "charge_card"; // 负责人名片
	public static final String USER_ID = "user_id"; // 用户ID
	public static final String CREATE_TIME = "create_time"; // 创建时间
	public static final String DELETETAG = "deletetag"; // 删除标识
	public static final String STATUS = "status"; // 审核状态

	public static final int STATUS_SUCCESS = 2;
	public static final int STATUS_FAILURE= 3;
	public static final int STATUS_APPROVING= 1;

	public static final int DELETE_STATUS_YES = 1;
	public static final int DELETE_STATUS_NO = 0;

	public String status(){
		String result="";
		if(getInt(STATUS)==STATUS_APPROVING){
			result="审核中";
		}else if(getInt(STATUS)==STATUS_SUCCESS){
			result="审核通过";
		}else if(getInt(STATUS)==STATUS_FAILURE){
			result="审核未通过";
		}else{
			result="未知状态";
		}
		return result;
	}
	
	
	@Override
	public String tableName() {
		return "fair_user_authenticate";
	}

}